package com.ruoyi.service.domain;

import com.ruoyi.shop.domain.CheShop;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import java.util.List;

/**
 * 服务项目对象 che_service
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
public class CheService extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号，自增 */
    private Long id;

    /** 服务项目名称 */
    @Excel(name = "服务项目名称")
    private String name;

    /** 商家名称（商家表外键） */
    @Excel(name = "商家名称", readConverterExp = "商=家表外键")
    private Long shopId;

    /** 服务分类（服务分类外键） */
    @Excel(name = "服务分类", readConverterExp = "服=务分类外键")
    private Long serviceSortId;

    /** 原价【多个服务项价格总额】 */
    @Excel(name = "原价【多个服务项价格总额】")
    private Long oldPrice;

    /** 现价【商家定义后的价格】 */
    @Excel(name = "现价【商家定义后的价格】")
    private Long newPrice;

    /** 服务介绍 */
    @Excel(name = "服务介绍")
    private String intro;

    /** 逻辑删除（0：未删除，1：已删除） */
    private Long deleted;
    @Transient
    private CheServiceSort serviceSort;
    @Transient
    private List<CheServiceItems> serviceItems;
    @Transient
    private com.ruoyi.shop.domain.CheShop shop;

    public CheShop getShop() {
        return shop;
    }

    public void setShop(CheShop shop) {
        this.shop = shop;
    }

    public List<CheServiceItems> getServiceItems() {
        return serviceItems;
    }

    public void setServiceItems(List<CheServiceItems> serviceItems) {
        this.serviceItems = serviceItems;
    }

    public CheServiceSort getServiceSort() {
        return serviceSort;
    }

    public void setServiceSort(CheServiceSort serviceSort) {
        this.serviceSort = serviceSort;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setServiceSortId(Long serviceSortId) 
    {
        this.serviceSortId = serviceSortId;
    }

    public Long getServiceSortId() 
    {
        return serviceSortId;
    }
    public void setOldPrice(Long oldPrice) 
    {
        this.oldPrice = oldPrice;
    }

    public Long getOldPrice() 
    {
        return oldPrice;
    }
    public void setNewPrice(Long newPrice) 
    {
        this.newPrice = newPrice;
    }

    public Long getNewPrice() 
    {
        return newPrice;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("shopId", getShopId())
            .append("serviceSortId", getServiceSortId())
            .append("oldPrice", getOldPrice())
            .append("newPrice", getNewPrice())
            .append("intro", getIntro())
            .append("createTime", getCreateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
